package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Order_detailMapper {
    void insert(List <OrderDetail> orderDetailList);
    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getDetailsBy_order_id(Integer id);
    @Delete("delete from order_detail where order_id = #{id}")
    void deleteByorderid(Long id);

    @Select("select * from order_detail where order_id = #{id}")
    List<OrderDetail> getByorderID(Integer id);
}
